package com.yungu.swift.system.sys.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysRegionalAgentDto;
import com.yungu.swift.system.sys.model.dto.SysWayCompanyDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * SystemWayCompanyMapper数据库操作接口类
 **/

public interface SysWayCompanyMapper<T extends SysWayCompanyDto> extends IMapper<T> {

    Integer batchDel(Map paras);

    Integer batchSave(@Param("data") List<SysWayCompanyDto> data);

    List<SysWayCompanyDto> listUsed(@Param("agentUuid") String agentUuid, @Param("wayUuids") List<String> wayUuids);

    List<SysWayCompanyDto> listUse(@Param("organizationUuid") String organizationUuid, @Param("wayUuids") List<String> wayUuids);

    List<SysWayCompanyDto> listWayByOrganization(@Param("organizationUuid") String organizationUuid);

    List<SysRegionalAgentDto> getSubAgentByWay(Map<String, Object> paras);
}